package com.ftg.learn.chapter15;

/**
 * @author KangJx
 * @date 2021/7/26
 */
class SuperClass {
    static {
        System.out.println("我是父类 init");
    }
    public static int value = 4;
}

class SubClass extends SuperClass {
    static {
        System.out.println("我是子类 init");
    }
}

public class Test2 {
    public static void main(String[] args) {
        System.out.println(SubClass.value);
        SubClass[] sca = new SubClass[10];
    }
}
